#ifndef __SERIAL_SCREEN_PROTOCOL_H
#define __SERIAL_SCREEN_PROTOCOL_H

#include "include.h"

extern uint8_t recv_arry[40];
extern int flag ;

uint16_t data_protocol(int16_t *source, uint8_t *target, int item, uint16_t size, int status);

uint16_t login_protocol(uint8_t *target, int status);
uint16_t color_protocol(uint8_t *target, int status);
uint16_t server_ip_protocol(uint16_t *source, uint8_t *target);
uint16_t waterlock_axis_protocol(uint16_t *source, uint8_t *target);
void data_into_arry(uint8_t *target, int index, uint16_t data);
void data_protocol_common_part(uint8_t *target, uint16_t start_position);
void response_operation(uint16_t address, uint16_t value);
void screen_test_xbc( void );
void refresh_screen_data( void );
#endif